package zpf.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;

/**
 * @ClassName: ConfigurationInsideScanPackage
 * @Description:  RibbonClient 配置类
 * @Autor: ZPF
 * @Date: 2021/1/13 15:33
 **/
public class ConfigurationInsideScanPackage {

    @Bean
    public IRule ribbonRule(){
        return new RandomRule();
        //return new RoundRobinRule();
    }
}
